#!/bin/bash

cd ./native

gcc -I"$JAVA_HOME/include" \
    -I"$JAVA_HOME/include/linux" \
    -shared -o libtpchrvvagg.so \
    rvv_agg.c -fPIC \
    -march=rv64gcv \
    -mabi=lp64d \
    -O3 \
    -ftree-vectorize

cd ..
